---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-3f17534b89d4> in <module>
1 with mc3.Model() as model:
----> 2 a = arcsin3('arcsin', 0, testval=1)
~/miniconda3/envs/python3/lib/python3.7/site-packages/pymc3/distributions/distribution.py in __new__(cls, name, *args, **kwargs)
44 total_size = kwargs.pop('total_size', None)
45 dist = cls.dist(*args, **kwargs)
---> 46 return model.Var(name, dist, data, total_size)
47 else:
48 raise TypeError("Name needs to be a string but got: {}".format(name))
~/miniconda3/envs/python3/lib/python3.7/site-packages/pymc3/model.py in Var(self, name, dist, data, total_size)
824 with self:
825 var = FreeRV(name=name, distribution=dist,
--> 826 total_size=total_size, model=self)
827 self.free_RVs.append(var)
828 else:
~/miniconda3/envs/python3/lib/python3.7/site-packages/pymc3/model.py in __init__(self, type, owner, index, name, distribution, total_size, model)
1272 self.tag.test_value = np.ones(
1273 distribution.shape, distribution.dtype) * distribution.default()
-> 1274 self.logp_elemwiset = distribution.logp(self)
1275 # The logp might need scaling in minibatches.
1276 # This is done in `Factor`.
<ipython-input-2-e0e798924a58> in logp(self, value)
4
5 def logp(self, value):
----> 6 return scipy.stats.arcsine.logpdf(value, loc=value)
~/miniconda3/envs/python3/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py in logpdf(self, x, *args, **kwds)
1762 x = np.asarray((x - loc)/scale, dtype=dtyp)
1763 cond0 = self._argcheck(*args) & (scale > 0)
-> 1764 cond1 = self._support_mask(x, *args) & (scale > 0)
1765 cond = cond0 & cond1
1766 output = empty(shape(cond), dtyp)
~/miniconda3/envs/python3/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py in _support_mask(self, x, *args)
895 def _support_mask(self, x, *args):
896 a, b = self._get_support(*args)
--> 897 return (a <= x) & (x <= b)
898
899 def _open_support_mask(self, x, *args):
~/miniconda3/envs/python3/lib/python3.7/site-packages/theano/tensor/var.py in __bool__(self)
89 else:
90 raise TypeError(
---> 91 "Variables do not support boolean operations."
92 )
93
TypeError: Variables do not support boolean operations.